<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 

$url = '';
if ($g4['https_url']){
    if (preg_match("/^\./", $urlencode))
        $url = $g4[url];
    else
        $url = $g4[url].$urlencode;
} 
else {
    $url = $urlencode;
}
?>

						<script type="text/javascript" src="<?=$g4[path]?>/js/capslock.js"></script>
						<script type="text/javascript">
						function fhead_submit(f)
						{
						    if (!f.mb_id.value) {
						        alert("회원아이디를 입력하십시오.");
						        f.mb_id.focus();
						        return false;
						    }

						    if (!f.mb_password.value) {
						        alert("패스워드를 입력하십시오.");
						        f.mb_password.focus();
						        return false;
						    }

						    <?
						    if ($g4[https_url])
						        echo "f.action = '$g4[https_url]/$g4[bbs]/login_check.php';";
						    else
						        echo "f.action = '$g4[bbs_path]/login_check.php';";
						    ?>
						    
						    return true;
						}
						</script>
						
						<!-- Before -->
						<div class="before">
							<h2 class="dpNone">로그인</h2>
							<form name="fhead" action="" method="post" onsubmit="return fhead_submit(this);">
								<fieldset>
									<legend>Login</legend>
									<input type="hidden" name="url" value="<?=$url?>" />
									<input type="text" name="mb_id" class="iptText iptID" title="ID" onfocus="this.style.backgroundImage='none';"  onblur="if(this.value=='') this.style.backgroundImage='url(../images/common/bg_iptid.gif)';" />
									<input type="password" name="mb_password" class="iptText iptPass" title="Password" onfocus="this.style.backgroundImage='none';"  onblur="if(this.value=='') this.style.backgroundImage='url(../images/common/bg_iptpass.gif)';" />
									<input type="image" src="../images/common/btn_login.jpg" class="btnLogin" alt="Login" title="Login" />
								</fieldset>
							</form>
							<p class="loginBtns"><a href="<?=$g4[bbs_path]?>/register.php" class="btnJoin">회원가입</a> <span class="bar">|</span> <a href="#" onclick="win_password_forget(); return false;" class="btnFindid">아이디<span class="bar"> / </span>비번찾기</a></p>
							<hr />
						</div>
						<!-- //Before -->
